home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Latest Shareware Programs: Warp
/
OS-2 WARP - Latest Shareware Programs.iso
/
zipped.os2
/
repcom
/
zyx1496.arj
/
CP-13.TXT
< prev
next >
Wrap
Text File
|
1992-01-14
|
13KB
|
285 lines
Chapter 13: Fax Operation
The U-1496 series universal modem supports Group 3 send and receive
facsimile function. You must connect the modem to a PC in order to
use this fax function. The PC is the input/output device for the fax
function. The interface between the modem and the PC is the normal
RS-232 serial connection. It uses the same interface for both data
and fax applications. In fax operation, the modem does the function
of protocol handshaking and image data transfer, and the PC does the
job of image data conversion, compression, decompression, retrieving,
and storing.
In the following sections, we will describe the CCITT T.30 fax protocol,
extended fax AT commands, status report result codes, and flow control
protocol. The instruction of using the accompanied modem/fax utility
program is contained in the document file in the software disk, please
refer to the updated document disk file for software usage instruction.
********* The CCITT T.30 Fax Protocol ********
The CCITT T.30 fax protocol describes the G3 fax handshake signals
and procedures. U-1496 takes full control of this protocol, initiates
and terminates fax calls, manages the communication session, and transports
the image data.
Along with T.30, U-1496 provides the highest fax speed of 14400 bps
and will automatically step down to 12000, 9600, 7200, 4800, and 2400 bps if
the line condition is not good enough.
********* The Fax Command sets ***********
The U1496 series universal modem supports two commend sets for the fax,
the first one is based on the EIA 2388 Class 2 command set and the second
is the Enhanced Fax AT Commands for U1496.
1. The Class 2 Command set
The following Class 2 command sets supported by U1496 are implemented per EIA
2388.(8/20/90)
AT+FAA Auto Answer Mode.
AT+FBOR Phase C Data Bit Order.
AT+FCLASS Service Class Identification and Control.
AT+FMFR Identify Manufacture.
AT+FDCC Establish DCE Capability.
AT+FDIS Current Session Negotiating Position.
AT+FDCS Current Session Parameters (Read Only).
AT+FLID Local FAX Station ID String, TSI or CSI.
AT+FCR Capability to Receive.
AT+FDR Begin or Continue Phase C Data Reception.
AT+FDT Begin or Continue Sending.
AT+FET End the Page or Document.
2. Extended Fax AT Commands
The PC controls the modem through a set of extended fax AT commands
and the modem responds with a set of status report result codes. During
data state, compressed fax image data is flowing between the modem
and PC. The default serial connection speed is 19200 bps and it is
higher than the fax link rate. RTS/CTS hardware flow control is used
to regulate the data flow.
U-1496 provides an extended fax AT command set to set modem mode and
fax parameters. Besides the extended fax AT commands, U-1496 accepts
all the other AT commands described in Chapter 7. For instance, you
can use 'ATD' to make a fax call, or 'ATA' to answer an incoming fax
call.
When Using the Extended Fax AT Commands, you need to send the command
"AT+FCLASS=6" first.
Following are the fax related AT commands:
Mode Setting
#F Set the U-1496 into 'ZyXEL FAX' mode, same function as
the extended AT command 'AT&N32'.
Parameter Setting
#V0 Set to normal vertical resolution.
#V1 Set to high vertical resolution.
#T0 Set to one dimensional coding scheme.
#T1 Set to two dimensional coding scheme.
#R0 Set recording width, 1728 picture elements along a scan
line length of 215mm.
#R1 Set recording width, 2048 picture elements along a scan
line length of 255mm.
#R2 Set recording width, 2432 picture elements along a scan
line length of 303mm.
#L0 Set maximum recording length, A4 (297mm ).
#L1 Set maximum recording length, B4 ( 364mm ).
#L2 Set maximum recording length, unlimited.
#C0 Set minimum scan line time capability at the receiver, 20
ms at 3.85 line/mm, T(7.7)=T(3.85).
#C1 Set minimum scan line time capability at the receiver, 5
ms at 3.85 line/mm, T(7.7)=T(3.85).
#C2 Set minimum scan line time capability at the receiver, 10
ms at 3.85 line/mm, T(7.7)=T(3.85).
#C3 Set minimum scan line time capability at the receiver, 20
ms at 3.85 line/mm, T(7.7)=1/2 T(3.85).
#C4 Set minimum scan line time capability at the receiver, 40
ms at 3.85 line/mm, T(7.7)=T(3.85).
#C5 Set minimum scan line time capability at the receiver, 40
ms at 3.85 line/mm, T(7.7)=1/2 T(3.85).
#C6 Set minimum scan line time capability at the receiver, 10
ms at 3.85 line/mm, T(7.7)=1/2 T(3.85).
#C7 Set minimum scan line time capability at the receiver, 0
ms at 3.85 line/mm, T(7.7)=T(3.85).
#P Set the local phone number, the phone number following
the character 'P' can be up to 25 characters. The modem
will exchange this phone number with remote fax machine
during initial handshaking.
Status Report Result Codes
When the modem is set in the fax mode, each 'ATD' or 'ATA' command
will make the modem to try to establish a fax connection and the U-1496
will send a status report result code back to the DTE (computer).
Following are the possible result codes:
NO DIAL TONE Try to dial but no dial tone is detected.
NO CARRIER Handshake fail or no carrier detected or timeout.
BUSY The other party's phone line is busy.
NO ANSWER Expected quiet answer is not detected before
timeout.
CONNECT FAX/SnnnnnVnTnRnLnCnPxxxxxxxxxxxxxxxxxxxx
This report informs DTE the connecting status, which
includes the connection speed and the fax parameters
after handshaking with the remote facsimile.
Snnnn Fax connection speed; nnnn is a 4 digit
number representing the connection speed.
nnnn=1440, 1200, 9600, 7200, etc...
Vn Vertical resolution; n=0 or 1.
Tn Coding scheme; n=0 or 1.
Rn Recording width; n=0, 1, or 2.
Ln Recording length; n=0, 1, or 2.
Cn Scan line time; n=1 to 7.
Pxxxx Remote fax number.
After each fax disconnection, the following result code is sent back
to the DTE (computer):
DISCONNECTnPxxxxxxxxxxxxxxxxxxxx
This result code informs DTE the disconnecting status.
DISCONNECT0 Disconnect with remote confirmation.
DISCONNECT1 Disconnect without remote confirmaton.
Pxxxx Remote fax number.
The basic AT commands 'ATV0' and 'ATQ1' do not affect the above CONNECT
and DISCONNECT status report result codes, the U-1496 will always
return the same status form as above.
Flow Control
In fax mode, the U-1496 always uses hardware (RTS/CTS) flow control.
The following flow control signaling is used during sending a fax:
CTS is used by the U-1496 to flow control the DTE. When the
U-1496 turns CTS off, the buffer inside the U-1496 is full and
can not accept any more data. You can send data only when CTS is ON.
RTS is used by the computer to signal U-1496 that the fax
message is finished. As soon as RTS OFF is detected, U-1496 starts
the post message handshaking to make sure that the remote facsimile
has received the fax message successfully, and then hangs up the phone.
After hanging up, the U-1496 sends a status report result code to
the DTE.
If you want to send a multi-page fax, you need only add the
RTC signal between the fax message of two pages. U-1496 detects
the RTC signal automatically, handshakes multi-page procedure with
remote facsimile and sends the following messages.
The following flow control signaling is used during receiving a fax:
CTS is not used when receiving fax.
RTS is used to inform U-1496 that DTE can not accept data at current time.
The U-1496 will not pass any received data to DTE if RTS is turned off.
When finishing the fax message, the U-1496 turns off CD and then sends a status
report result code to the DTE.
********* Connection with the FAX machine **********
If you have a fax machine already, you can use the U1496 to answer
the incoming call and distinguish it from Data and Fax.
1. Plug the phone cable from the wall jack into U1496's Line Jack.
2. Plug the phone cable from the fax machine into U1496's Phone Jack.
3. Power on the DTE terminal and set the S38 bit 4 of U1496 to be 1.
Send the command "ATS38=16" to U1496.
4. Set the U1496 ring number to be same as your fax machine. For
example, if you have set your fax machine to answer an
incoming call after 1 ring, then you need to set the U1496
with the same ring number by sending the command "ATS0=1" to
U1496.
5. Now, you can use your fax line to answer both Fax and Data.
┌─────────────────┐
│ │
│ │ ┌────────┐
│o o│ │ U1496 │ │ ┌────┐ │
│o o│ │ │ │ └────┘ │
┌─┴──────┴─┐ │ RS232 │ └─┐ ┌─┘
│┌─ FAX ──┐│ │ ┌─┬─┐ ┌──────┐│ ┌──┴────┴──┐
│└────────┘│ └──┴╥┴╥┴──┴╥╥╥╥╥╥┴┘ │ Terminal │
└───────╥──┘ ║ ║ ║║║║║║ └╥╥╥╥╥╥────┘
Phone ╚═══════════╝ ║ ╙╨╨╨╨╨──────────╨╨╨╨╨╜
Line ~~~════════════════════════╝
******** Receive Fax in the BBS System **********
To make your BBS receive the incoming FAX, you need to change the following
setup :
1. Add the string "#B1+FCLASS=6" into the init string. Be
sure that the "+FCLASS=6" must be the last command.
2. change one of the connect message list to be "CONNECT FAX".
3. For the firmware version V3.94 or earlier, set the external
mail string to be "13,10,27,27,13,10", where the number
represents the ascii number. That is, the string is :
"CR, LF, ESC, ESC, CR, LF".
For the firmware version of V3.95 or newer, the external
mail string need to be set as "ZyXEL".
Give this external an error level to shell out to dos.
3. in your BBS batch file, if the error level matches the
external mail, execute "rcvfax comport workpath".
4. Now, you can use U1496 to receive a fax in your BBS.
The following is a sample setting in the frontdoor system :
Add in the init String : X7#B1+FCLASS=6
╒════════════════════ Messages ╕
│ 300 CONNECT| │
│ 1200 CONNECT 1200 │
│ 1275 CONNECT FAX │
│ 2400 CONNECT 2400 │
│ 4800 CONNECT 4800 │
│ 9600 CONNECT 7200 │
│ 19200 CONNECT 9600 │
│ 38400 CONNECT 14400 │
└──────────────────────────────┘
╒════════════════════════════════════════ External Mail ╕
│ String Error Level │
│ 1 \r\nEscEsc\r\n or ZyXEL 100 │
│ . │
│ . │
└───────────────────────────────────────────────────────┘
** Remark : To input the ascii code, press Alt and the key in
the ascii number then release the Alt key.
\r : ascii 13
\n : ascii 10
Esc : ascii 27
For the Binkley User with firmware version of V3.95 or newer, add the following
string into the file "binkley.cfg" :
Init AT&FX7s0=1#b1+fclass=6|
ExtrnMail ZyXEL errorlevel